  <!-- navbar -->
  <div data-ng-include=" '/statics/tpl/blocks/header.html' " class="app-header navbar">
  </div>
  <!-- / navbar -->

  <!-- menu -->
  <div data-ng-include=" '/statics/tpl/blocks/aside.html' " class="app-aside hidden-xs {{app.settings.asideColor}}"></div>
  <!-- / menu -->

  <!-- content -->
  <div class="app-content">
    <div ui-butterbar ng-class="{true: 'active', false: 'hide'}[isLoadingActive]"></div>
    <a href class="off-screen-toggle hide" ui-toggle-class="off-screen" data-target=".app-aside" ></a>
    <div class="title-current-page"><i class="fa fa-home"></i> 当前页：<span ng-bind="moduleTitle"></span></div>
    <div class="app-content-body fade-in-up" ui-view></div>
  </div>
<div id="loadingPage" style="display: none;">
	<div id="colorfulPulse">
	  <span class="item-1"></span>
	  <span class="item-2"></span>
	  <span class="item-3"></span>
	  <span class="item-4"></span>
	  <span class="item-5"></span>
	  <span class="item-6"></span>
	  <span class="item-7"></span>
	</div>
</div>  
<script type="text/javascript">
    var loadingPage = document.getElementById('loadingPage'),
        // 初始化就加载loading的模块：仪表盘
        //app/instrument/list
        regLoadingModules = /#\/app\/instrument\/list/;
    // 显示全局loading
    window.showLoading = function (options) {
        // cover: true; 背景不透明
        if (options && options.cover) {
            loadingPage.style.opacity = 1;
            loadingPage.style.background = '#fff';
        }
        loadingPage.style.display = 'block';
    };

    // 隐藏全局loading
    window.hideLoading = function () {
        loadingPage.style.opacity = 0.6;
        loadingPage.style.background = '#000';
        loadingPage.style.display = 'none';
    };

    // 出错时隐藏全局loading
    window.onerror = function () {
        window.hideLoading();
    };

    $(function(){
        console.log(1);
        // 一开始就加载loading
        if (location.href.match(regLoadingModules)) {
        	 console.log(2);
            //window.showLoading();
        }
    })
</script>